#!/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
错误输出重定向和程序终止
"""
import sys

# 打印错误消息(日志)
sys.stderr.write('Warning, log file not found starting a new one\n')
# 终止脚本
sys.exit()
print("hello world")
